import java.io.File;

import org.apache.lucene.document.Document;
import org.pdfbox.searchengine.lucene.LucenePDFDocument;

public class RunIndexing {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		
		Document doc = LucenePDFDocument.getDocument(new File(args[0]));
		
		System.out.println(doc);
	}

}
